package com.ys.controller.api.finance;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ys.entity.finance.TcwAccountCountForUserHistory;
import com.ys.service.sys.CommonApiService;
import com.ys.vo.LayuiTableVoJA;

@Controller
@RequestMapping("/api/inter/tcwAccountCountForUserHistory")
public class ApiInterTcwAccountCountForUserHistoryController {
	
	public static Long MENU_ID = 107L;
	
//	private static final Logger logger = Logger.getLogger(ApiAdminLoginController.class);
	
	@Autowired
	private CommonApiService<TcwAccountCountForUserHistory> commonApiService;

	@RequiresPermissions("tcwAccountCountForUserHistory:view")
	@RequestMapping("/search")
    @ResponseBody
	public LayuiTableVoJA search(@ModelAttribute TcwAccountCountForUserHistory cond){
		
		return commonApiService.searchLay(cond);
	}
}
